<?php $this->load->view('layout/header');?>
<div class="supplier-content-page">
    <div class="product-test-h5">
        <ul class="breadcrumb">
            <li><a href="javascript:;">我的账户</a></li>
            <li class="active"><a href="<?php echo site_url('accountinfo/accountRecord');?>">账户信息</a></li>
        </ul>
        <?php echo execute_alert_message();?>
        <?php $this->load->view('accountinfo/common');?>
        <div class="subject-table">
            <div class="account-record-nav">
                <a href="<?php echo site_url('accountinfo/accountRecord');?>">账户收支</a>
                <a href="<?php echo site_url('accountinfo/carryRecord');?>" class="active">提现记录</a>
                <a href="<?php echo site_url('accountinfo/rechargeRecord');?>">充值记录</a>
                <a href="<?php echo site_url('accountinfo/rebateRecord');?>">返利记录</a>
            </div>
            <?php if ($withdrawList->num_rows() > 0) :?>
                <table class="table table-bordered">
                    <tr>
                        <th>提现单号</th>
                        <th>提现金额</th>
                        <th>申请时间</th>
                        <th>状态</th>
                        <th>备注</th>
                    </tr>
                    <?php foreach ($withdrawList->result() as $item):?>
                    <tr>
                        <td><?php echo $item->withdraw_id;?></td>
                        <td><?php echo $item->amount;?></td>
                        <td><?php echo $item->created_at;?></td>
                        <td>
                            <?php
                            if ($item->audit_state == 2)
                            {
                                 if ($item->state == 1)
                                {
                                    echo "初审失败";
                                }
                                elseif($item->state == 2)
                                {
                                    echo "终审失败";
                                }
                            }
                            else
                            {
                                if ($item->state == 0)
                                {
                                    echo "待初审";
                                }
                                elseif($item->state == 1)
                                {
                                    echo "待终审";
                                }
                                else
                                {
                                    echo "提现成功";
                                }
                            }
                            ?>
                        </td>
                        <td><?php echo $item->describe;?></td>
                    </tr>
                    <?php endforeach;?>
                </table>
                <nav><?php echo $pg_link;?></nav>
            <?php else :?>
                <div class="none-data">暂无数据</div>
            <?php endif;?>
        </div>
    </div>
</div>
<?php $this->load->view('layout/footer');?>